//
//  Consultation.m
//  haolaDoc
//
//  Created by chen on 2017/5/12.
//  Copyright © 2017年 deyi. All rights reserved.
//

#import "Consultation.h"
#import "WebrtcViewController.h"
@interface Consultation ()<UITextFieldDelegate>

@end

@implementation Consultation

- (void)viewDidLoad {
    [super viewDidLoad];
    _consultationScrollView.contentSize=CGSizeMake(0, self.view.frame.size.height);
    NSLog(@"这才是输出%@",_sendRecords);
    _inputPhonenumber.delegate=self;
}
- (IBAction)newMedicalRecord:(id)sender {
    [self performSegueWithIdentifier:@"showNewRecords" sender:self];
}
- (IBAction)sendRequest:(id)sender {
     [self performSegueWithIdentifier:@"showWebrtc" sender:self];
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    NSString *msg=_inputPhonenumber.text;
    if([segue.identifier isEqualToString:@"showWebrtc"]){
         WebrtcViewController  *newwebrtc=segue.destinationViewController;
        
        newwebrtc.roomName=msg;
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
